
/**
 * Created by chinalin on 2017/3/21.
 */
//AnnotationTest2类的注解及属性
/*@MyAnnotation(annotationAttr=@MetaAnnotation("flx"),color="red",value="abc",arrayAttr={1,2,3})*/
@MyAnnotation1(value = MyAnnotation.class)
public class AnnotationTest1 {

    /*@MyAnnotation("xyz")  //main方法的注解的属性value="xyz"*/
    public static void main(String[] args) {
        if (AnnotationTest1.class.isAnnotationPresent(MyAnnotation1.class)){

            MyAnnotation1 myAnnotation1 = (MyAnnotation1) AnnotationTest1.class.getAnnotation(MyAnnotation1.class);
            System.out.println(myAnnotation1);
        }
    }
}
